package red.stu.csc.test;

import org.java_websocket.WebSocket;
import org.java_websocket.handshake.ClientHandshake;

import red.stu.csc.CSCServerInterface;

public class CSCServerInterfaceImpl implements CSCServerInterface {

	@Override
	public void onDebugInfo(String info) {
		System.err.println("onDebugInfo:" + info);
	}

	@Override
	public void onStart() {
		System.err.println("onStart");
	}

	@Override
	public void onOpen(WebSocket webSocket, ClientHandshake clientHandshake) {
		System.err.println("onOpen:" + webSocket);
	}

	@Override
	public void onClose(WebSocket webSocket, int code, String reason, boolean remote) {
		System.err.println("onClose:" + webSocket + " - " + remote);
	}

	@Override
	public void onError(WebSocket webSocket, Exception e) {
		System.err.println("onError:" + webSocket);
		e.printStackTrace();
	}

}
